﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using VISS.API.Admins;

namespace VISS.Web.BackEnd.Modules.General {

    public partial class LoginPage : System.Web.UI.Page {

        protected void Page_Load(object sender, EventArgs e) {
        }

        protected void LoginBox_Authenticate(object sender, AuthenticateEventArgs e) {
            AdminEnt item = null;
            if (AdminBC.Login(LoginBox.UserName, LoginBox.Password, out item)) {
                e.Authenticated = true;
                Session.Add(AppSettings.SESSION_ADMIN_LOGIN, item);
                Response.Redirect("~/trang_chu/");
            }
            else {

            }
        }
    }
}
